<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>Log4Net 开发文档 - 徐文兵的IT博客 - 博客园</title>
<meta name="keywords" content="开源组件,Log4Net,开发文档">
<meta name="description" content="我自己对Log4net 学习和实践的总结 。 包含了对Log4net 组成的概要分析，配置文件的说明。最后写了一个小例子。">



<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/macroxu-1982/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/macroxu-1982/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        


<div id="top">
	
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/macroxu-1982/">徐文兵的IT博客</a></h1>
<p id="tagline">(全力支持博客实名化)
</p>
</div>
<div id="leftmenu" style="display: inline;">
	
		
<h3>导航</h3>
<ul>
			<li><a id="MyLinks1_HomeLink" href="http://www.cnblogs.com/">博客园</a></li>
			<li><a id="MyLinks1_MyHomeLink" href="http://www.cnblogs.com/macroxu-1982/">首页</a></li>
			<li><a id="MyLinks1_NewPostLink" href="http://www.cnblogs.com/macroxu-1982/admin/EditPosts.aspx?opt=1">新随笔</a></li>
			<li><a id="MyLinks1_ContactLink" accesskey="9" href="http://space.cnblogs.com/msg/send/%e5%be%90%e6%96%87%e5%85%b5">联系</a></li>
			<li><a id="MyLinks1_Syndication" href="http://www.cnblogs.com/macroxu-1982/rss">订阅</a><a id="MyLinks1_XMLLink" href="http://www.cnblogs.com/macroxu-1982/rss"><img src="xml.gif" alt="订阅" style="border-width: 0px;"></a>
			</li><li><a id="MyLinks1_Admin" href="http://www.cnblogs.com/macroxu-1982/admin/EditPosts.aspx">管理</a></li>
</ul>
		<table id="Calendar1_entryCal" class="Cal" title="Calendar" style="border-style: solid; border-width: 1px; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr><td colspan="7" style="background-color: Silver;"><table class="CalTitle" style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0">
		<tbody><tr><td class="CalNextPrev" style="width: 15%;"><a href="javascript:__doPostBack('Calendar1$entryCal','V3227')" style="color: Black;" title="Go to the previous month">&lt;</a></td><td style="width: 70%;" align="center">2008年12月</td><td class="CalNextPrev" style="width: 15%;" align="right"><a href="javascript:__doPostBack('Calendar1$entryCal','V3288')" style="color: Black;" title="Go to the next month">&gt;</a></td></tr>
	</tbody></table></td></tr><tr><th class="CalDayHeader" abbr="日" scope="col" align="center">日</th><th class="CalDayHeader" abbr="一" scope="col" align="center">一</th><th class="CalDayHeader" abbr="二" scope="col" align="center">二</th><th class="CalDayHeader" abbr="三" scope="col" align="center">三</th><th class="CalDayHeader" abbr="四" scope="col" align="center">四</th><th class="CalDayHeader" abbr="五" scope="col" align="center">五</th><th class="CalDayHeader" abbr="六" scope="col" align="center">六</th></tr><tr><td class="CalOtherMonthDay" style="width: 14%;" align="center">30</td><td style="width: 14%;" align="center">1</td><td style="width: 14%;" align="center">2</td><td style="width: 14%;" align="center">3</td><td style="width: 14%;" align="center"><a href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/4.html"><u>4</u></a></td><td style="width: 14%;" align="center">5</td><td class="CalWeekendDay" style="width: 14%;" align="center">6</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">7</td><td style="width: 14%;" align="center">8</td><td style="width: 14%;" align="center">9</td><td style="width: 14%;" align="center">10</td><td style="width: 14%;" align="center">11</td><td style="width: 14%;" align="center">12</td><td class="CalWeekendDay" style="width: 14%;" align="center">13</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center"><a href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/14.html"><u>14</u></a></td><td style="width: 14%;" align="center">15</td><td style="width: 14%;" align="center">16</td><td style="width: 14%;" align="center">17</td><td style="width: 14%;" align="center">18</td><td style="width: 14%;" align="center">19</td><td class="CalWeekendDay" style="width: 14%;" align="center">20</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">21</td><td style="width: 14%;" align="center">22</td><td style="width: 14%;" align="center">23</td><td style="width: 14%;" align="center">24</td><td style="width: 14%;" align="center">25</td><td style="width: 14%;" align="center">26</td><td class="CalWeekendDay" style="width: 14%;" align="center">27</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">28</td><td style="width: 14%;" align="center">29</td><td style="width: 14%;" align="center">30</td><td style="width: 14%;" align="center">31</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">1</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">2</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">3</td></tr><tr><td class="CalOtherMonthDay" style="width: 14%;" align="center">4</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">5</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">6</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">7</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">8</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">9</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">10</td></tr>
</tbody></table>

		
<h3>公告</h3>
	<div style="text-align: center;">
 
<img src="alimamal.php" name="alimamatmpf0.7857810793238852" id="alimamatmpf0.7857810793238852" style="border: 0px none ; margin: 0px; padding: 0px; width: 0px; height: 0px; vertical-align: baseline;" border="0"><iframe name="alimamaf0.7857810793238852" id="alimamaf0.7857810793238852" border="0" marginwidth="0" marginheight="0" style="width: 140px; height: 216px;" src="index_1.html" scrolling="no" frameborder="0"></iframe>
</div>
<br>
<div>站点统计
<a href="http://www.51.la/?003213087" target="_top"><img alt="51.la 专业、免费、强健的访问统计" src="icon_0.gif" style="border: medium none ;"></a>
<img style="width: 0px; height: 0px;" src="go.asp">
</div>


<ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 240px; position: relative; visibility: visible; width: 120px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 240px; position: relative; visibility: visible; width: 120px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" src="index_2.html" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" frameborder="0" height="240" width="120"></iframe></ins></ins>


<ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 200px; position: relative; visibility: visible; width: 200px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 200px; position: relative; visibility: visible; width: 200px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame2" marginheight="0" marginwidth="0" name="google_ads_frame" src="index_3.html" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" frameborder="0" height="200" width="200"></iframe></ins></ins>

<div id="profile_block"><a href="http://home.cnblogs.com/macroxu-1982/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/macroxu-1982/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/macroxu-1982/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/%e5%be%90%e6%96%87%e5%85%b5" target="_top">发短消息</a></div>

		
<h3>留言簿</h3>
<ul>
	<li>
		<a id="MyMessages1_lnkMessages" href="http://www.cnblogs.com/macroxu-1982/Contact.aspx?id=1">给我留言</a>
	</li><li>
		<a id="MyMessages1_lnkPublicMsgView" href="http://www.cnblogs.com/macroxu-1982/default.aspx?opt=msg">查看公开留言</a>
	</li><li>
		<a id="MyMessages1_lnkPrivateMsgView" href="http://www.cnblogs.com/macroxu-1982/admin/MyMessages.aspx">查看私人留言</a>
	</li>
</ul>

		
		<h3>随笔分类<span style="font-size: 11px; font-weight: normal;">(26)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/macroxu-1982/category/57248.html">ASP.net(3)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to ASP.net(3)" href="http://www.cnblogs.com/macroxu-1982/category/57248.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/macroxu-1982/category/62363.html">JavaScript And Ajax(1)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to JavaScript And Ajax(1)" href="http://www.cnblogs.com/macroxu-1982/category/62363.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/macroxu-1982/category/78227.html">报表的专栏(5)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to 报表的专栏(5)" href="http://www.cnblogs.com/macroxu-1982/category/78227.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/macroxu-1982/category/166720.html">开源组件 (3)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to 开源组件 (3)" href="http://www.cnblogs.com/macroxu-1982/category/166720.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/macroxu-1982/category/63906.html">人生的剧本</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to 人生的剧本" href="http://www.cnblogs.com/macroxu-1982/category/63906.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cnblogs.com/macroxu-1982/category/88165.html">软件分析和设计(7)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to 软件分析和设计(7)" href="http://www.cnblogs.com/macroxu-1982/category/88165.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.cnblogs.com/macroxu-1982/category/83991.html">数据库和XML技术(7)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" title="Subscribe to 数据库和XML技术(7)" href="http://www.cnblogs.com/macroxu-1982/category/83991.html/rss">(rss)</a></li>
			
				</ul>
			
	
		<h3>文章分类<span style="font-size: 11px; font-weight: normal;">(16)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cnblogs.com/macroxu-1982/category/54482.html">ADO.net(1)</a> <a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl01_RssLink" title="Subscribe to ADO.net(1)" href="http://www.cnblogs.com/macroxu-1982/category/54482.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl02_Link" href="http://www.cnblogs.com/macroxu-1982/category/54213.html">C#(ASP.net)(3)</a> <a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl02_RssLink" title="Subscribe to C#(ASP.net)(3)" href="http://www.cnblogs.com/macroxu-1982/category/54213.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl03_Link" href="http://www.cnblogs.com/macroxu-1982/category/165229.html">创业文集(3)</a> <a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl03_RssLink" title="Subscribe to 创业文集(3)" href="http://www.cnblogs.com/macroxu-1982/category/165229.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl04_Link" href="http://www.cnblogs.com/macroxu-1982/category/109697.html">人生随笔(1)</a> <a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl04_RssLink" title="Subscribe to 人生随笔(1)" href="http://www.cnblogs.com/macroxu-1982/category/109697.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl05_Link" href="http://www.cnblogs.com/macroxu-1982/category/202178.html">网络游戏开发(8)</a> <a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl05_RssLink" title="Subscribe to 网络游戏开发(8)" href="http://www.cnblogs.com/macroxu-1982/category/202178.html/rss">(rss)</a></li>
			
				</ul>
			
	
		<h3>随笔档案<span style="font-size: 11px; font-weight: normal;">(26)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl01_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01.html">2010年1月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl02_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2009/12.html">2009年12月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl03_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2009/08.html">2009年8月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl04_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2009/07.html">2009年7月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl05_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2009/04.html">2009年4月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl06_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2009/02.html">2009年2月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl07_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/12.html">2008年12月 (2)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl08_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/09.html">2008年9月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl09_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/08.html">2008年8月 (2)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl10_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/07.html">2008年7月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl11_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/06.html">2008年6月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl12_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/05.html">2008年5月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl13_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2008/04.html">2008年4月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl14_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2007/08.html">2007年8月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl15_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2007/05.html">2007年5月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl16_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2007/04.html">2007年4月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl17_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2007/03.html">2007年3月 (3)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl18_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2007/02.html">2007年2月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl19_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2006/12.html">2006年12月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl20_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2006/11.html">2006年11月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl21_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2006/05.html">2006年5月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl02_LinkList_ctl22_Link" href="http://www.cnblogs.com/macroxu-1982/archive/2006/04.html">2006年4月 (1)</a> </li>
			
				</ul>
			
	
		<h3>文章档案<span style="font-size: 11px; font-weight: normal;">(20)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl01_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2009/10.html">2009年10月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl02_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2009/08.html">2009年8月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl03_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2009/07.html">2009年7月 (8)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl04_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2009/03.html">2009年3月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl05_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2008/12.html">2008年12月 (2)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl06_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2008/11.html">2008年11月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl07_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2008/10.html">2008年10月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl08_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2007/10.html">2007年10月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl09_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2007/04.html">2007年4月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl10_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2007/03.html">2007年3月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl03_LinkList_ctl11_Link" href="http://www.cnblogs.com/macroxu-1982/archives/2006/04.html">2006年4月 (2)</a> </li>
			
				</ul>
			
	
		<h3>相册</h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl04_LinkList_ctl01_Link" href="http://www.cnblogs.com/macroxu-1982/gallery/71688.html">BLogPhotos</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl04_LinkList_ctl02_Link" href="http://www.cnblogs.com/macroxu-1982/gallery/139790.html">BolgImages</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl04_LinkList_ctl03_Link" href="http://www.cnblogs.com/macroxu-1982/gallery/57192.html">my photo</a> </li>
			
				</ul>
			
	

		
<h3>阅读排行榜</h3>
<div class="RecentComment">
	
			<ul style="width: 100%;">
		
			<li>
				<a id="TopViewPosts_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2006/11/21/567305.html">1.&nbsp;Office编程在dot Net环境中总结(Excel篇)(7997)</a>
			</li>
		
			<li>
				<a id="TopViewPosts_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2009/07/22/1528955.html">2.&nbsp;项目开发流程规范文档(4789)</a>
			</li>
		
			<li>
				<a id="TopViewPosts_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2007/03/22/683852.html">3.&nbsp;uniqueidentifier数据类型在系统设计中的应用(3777)</a>
			</li>
		
			<li>
				<a id="TopViewPosts_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html">4.&nbsp;Log4Net 开发文档(3332)</a>
			</li>
		
			<li>
				<a id="TopViewPosts_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2006/05/31/413879.html">5.&nbsp;在Asp.net用C#建立动态Excel(外文翻译)(2827)</a>
			</li>
		
			</ul>
		
</div>

		
<h3>评论排行榜</h3>
<div class="RecentComment">
	
			<ul style="">
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html">1.&nbsp;在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）(35)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2009/07/22/1528955.html">2.&nbsp;项目开发流程规范文档(21)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2009/12/23/1630415.html">3.&nbsp;通过HttpWebRequest在后台对WebService进行调用(13)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2006/11/21/567305.html">4.&nbsp;Office编程在dot Net环境中总结(Excel篇)(13)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/14/1354957.html">5.&nbsp;Ext学习系列一（JavaScript 对象设计）(9)</a>
			</li>
		
			</ul>
		
</div>
		
	
</div>
<div id="rightmenu">
	
		
<h3>常用链接</h3>
<ul>

		<li><a id="BlogCustomControl1_rptMainLinks_ctl00_lnkLinkItem" href="http://www.cnblogs.com/macroxu-1982/MyPosts.html">我的随笔</a></li>
	
		<li><a id="BlogCustomControl1_rptMainLinks_ctl01_lnkLinkItem" href="http://home.cnblogs.com/macroxu-1982/">我的空间</a></li>
	
		<li><a id="BlogCustomControl1_rptMainLinks_ctl02_lnkLinkItem" href="http://space.cnblogs.com/msg/recent">我的短信</a></li>
	
		<li><a id="BlogCustomControl1_rptMainLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/macroxu-1982/MyComments.html">我的评论</a></li>
	
<li><a id="itemListLink" onclick="this.blur();WarpClass('itemListLink', 'itemListLin_con');return false;" href="#">更多链接</a></li>
</ul>
<div id="itemListLin_con" style="display: none;">
<ul>
		<li><a id="BlogCustomControl1_repeaterLinks_ctl01_lnkLinkItem" title="我发表过评论的随笔" href="http://www.cnblogs.com/macroxu-1982/OtherPosts.html">我的参与</a></li>
	
		<li><a id="BlogCustomControl1_repeaterLinks_ctl02_lnkLinkItem" href="http://www.cnblogs.com/macroxu-1982/MyNews.html">我的新闻</a></li>
	
		<li><a id="BlogCustomControl1_repeaterLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/macroxu-1982/RecentComments.html">最新评论</a></li>
	
		<li><a id="BlogCustomControl1_repeaterLinks_ctl04_lnkLinkItem" href="http://www.cnblogs.com/macroxu-1982/tag/">我的标签</a></li>
	</ul>
</div>
		
<h3>统计</h3>
	<ul>
		<li>随笔 - 26
		</li><li>文章 - 20
		</li><li>评论 - 149
		</li><li>引用 - 2
	</li>
</ul>
		
<h3>积分与排名</h3>
<ul>
	<li>
		积分 -
		56951
	</li><li>
		排名 -
		1295
	</li>
</ul>

		
		<h3>Tech WebSite</h3>
		
				<ul>
			
				<li><a id="CategoryDisplay1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.open-lib.com/">WebControls</a> </li>
			<li style="margin-top: 2px;">which website contained  much js controls</li>
				<li><a id="CategoryDisplay1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://blog.csai.cn/user1/18062/index.html">温昱的Blog</a> </li>
			<li style="margin-top: 2px;">资深咨询顾问，CSAL高级顾问</li>
				</ul>
			
	
		<h3>兄弟连</h3>
		
				<ul>
			
				<li><a id="CategoryDisplay1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://love-hu.cnblogs.com/">周燕军</a> </li>
			<li style="margin-top: 2px;">地方军出生</li>
				</ul>
			
	

		
<h3>最新评论
	<a id="RecentComments1_RSSHyperlink1" href="http://www.cnblogs.com/macroxu-1982/CommentsRSS.aspx"><img src="xml.gif" style="border-width: 0px;"></a></h3>
<div class="RecentComment">
	
			<ul>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl01_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1748558">1.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				没有必要的，只是google中国退出中国。关的只是google.cn。平时都用的的google.com的，退不退影响不大。google的服务器一直都没有在国内。gmail和这个无关。
要说影响可能就...
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--明天.Net</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl02_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1748473">2.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				据内部消息,某个移动运营商已经取消掉GPhone的产品发布会了. googlecn撤离貌似已成定局
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--Walzer</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl03_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1748353">3.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				mark 现在已经翻墙了，但总是不保险啊
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--徐文兵</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl04_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1748274">4.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				恩,准备工作早做好,不过真有那一天翻墙既是
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--黑羽飘舞</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl05_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1748119">5.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				默哀……
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--陛下</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl06_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1747966">6.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				gmail还是能用的
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--Asharp</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl07_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1747901">7.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				楼主多虑了~~
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--假如爱有天意</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl08_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1747620">8.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				gmail几乎不用
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--Gnie</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl09_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1747567">9.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				兄弟 程序不是本人写的 我也是直接找的 在官网下的
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--徐文兵</li>
		
			<li style="">
				<a id="RecentComments1_CommentList_ctl10_Hyperlink1" href="http://www.cnblogs.com/macroxu-1982/archive/2010/01/14/1648122.html#1747561">10.&nbsp;Re:在谷歌中国撤离危机到来之前，赶快备份Gmail吧（完全手册）</a>
			</li>
			<li style="">
				小心，你的密码输入了这个软件，可能被转发或保存。
			</li>
			<li style="text-align: right; margin-right: 4px;">
				--WorkTimer</li>
		
			</ul>
		
</div>
		
	
</div>
<div id="main">
	
					
	<div class="post">
		<h2>
			<a id="ctl10_TitleUrl" href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html">Log4Net 开发文档</a>
		</h2>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;">目录</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">1.1<span style="">&nbsp; </span>log4net</font></span><span style="font-family: 宋体;">的简要说明，在具体项目中扮演的功能角色。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span style="" lang="EN-US"><span style=""><font face="Calibri">1.2</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp; </span></span></span><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;</span>Log4net </font></span><span style="font-family: 宋体;">组成结构说明</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt;"><span style="" lang="EN-US"><span style=""><font face="Calibri">1.3</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp; </span></span></span><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;</span>Log4net</font></span><span style="font-family: 宋体;">配置文件解析</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">1.4<span style="">&nbsp; </span></font></span><span style="font-family: 宋体;">举一个实际的例子，阐述</span><span lang="EN-US"><font face="Calibri">Log4net</font></span><span style="font-family: 宋体;">的完整的实现流程</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 18pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: -23.25pt;"><b style=""><span style="" lang="EN-US"><span style=""><font face="Calibri">1.1</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></b><b style=""><span lang="EN-US"><font face="Calibri">log4net</font></span></b><b style=""><span style="font-family: 宋体;">的简要说明，在具体项目中扮演的功能角色。</span><span lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><font face="Calibri">Log4net </font></span><span style="font-family: 宋体;">是一个第三方开源组件，它设计的主要目的是组合，生成日志信息，同时将配置保存到各种存储介质或者展现平台中，在实际项目中，</span><span lang="EN-US"><font face="Calibri">Log4net </font></span><span style="font-family: 宋体;">可以保存系统运行情况，可以在系统出现异常时，根据保存的日志信息，查看当时系统的状态。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: -23.25pt;"><b style=""><span style="" lang="EN-US"><span style=""><font face="Calibri">1.2</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></b><b style=""><span lang="EN-US"><font face="Calibri">Log4net </font></span></b><b style=""><span style="font-family: 宋体;">组成结构说明</span><span lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="" lang="EN-US"><v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><font face="Calibri"><span style=""><br><img alt="uml.JPG" src="uml.jpg" border="0" height="479" width="739"><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></font></span><span style="font-family: 宋体;">主要的接口和类的</span><span lang="EN-US"><font face="Calibri">UML</font></span><span style="font-family: 宋体;">图</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">ILog <o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">定义日志的基本操作</span><span lang="EN-US"><font face="Calibri">(</font></span><span style="font-family: 宋体;">添加各种告警日志</span><span lang="EN-US"><font face="Calibri">)</font></span><span style="font-family: 宋体;">。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">LogImpl<o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">继承了</span><span lang="EN-US"><font face="Calibri">ILog</font></span><span style="font-family: 宋体;">接口，实现</span><span lang="EN-US"><font face="Calibri">log</font></span><span style="font-family: 宋体;">基本的功能的类</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">在</span><span lang="EN-US"><font face="Calibri">LogImpl </font></span><span style="font-family: 宋体;">类中包含了一个或者多个继承了</span><span lang="EN-US"><font face="Calibri">AppenderSkeleton</font></span><span style="font-family: 宋体;">基类的类</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">AppenderSkeleton<o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">定义输出源结构，提供保存日志信息的方式（这里，输出源可以是数据库，文件，系统日志，控制台程序，等等）</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">LogManager<o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">负责根据</span><span lang="EN-US"><font face="Calibri">LoggerName</font></span><span style="font-family: 宋体;">或者</span><span lang="EN-US"><font face="Calibri">Type </font></span><span style="font-family: 宋体;">等参数接口来生成并返回对应的</span><span lang="EN-US"><font face="Calibri">ILog</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">IFilter<o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span class="trans"><span style="font-family: 宋体;">过滤器，负责筛选需要保存的日志。</span><span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><b style=""><span lang="EN-US"><font face="Calibri">ILayout<o:p></o:p></font></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">负责日志信息生成的格式</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">上面说明了</span><span lang="EN-US"><font face="Calibri">Log4net</font></span><span style="font-family: 宋体;">组件中的</span><font face="Calibri"> </font><span style="font-family: 宋体;">主要的类之间的关系。看了后，我们对一个</span><span lang="EN-US"><font face="Calibri">Logger </font></span><span style="font-family: 宋体;">是怎么组成的还是不怎么了解。下面我们着重的说明他们的组合关系</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><v:rect id="_x0000_s1026" style="margin-top: 10.95pt; z-index: 1; left: 0px; margin-left: 96.65pt; width: 226.2pt; position: absolute; height: 144.7pt; text-align: left;" fillcolor="#8db3e2 [1311]"><v:textbox>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="border: medium none rgb(236, 233, 216); background-color: transparent;">
<div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><b style=""><span style="">&nbsp;</span></b></font></span></p></div></td></tr></tbody></table></v:textbox></v:rect></p><br style="" clear="all">
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><span style=""><font face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img alt="kuaijiang.JPG" src="kuaijiang.jpg" border="0" height="217" width="336">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Logger</font></span><span style="font-family: 宋体;">的结构图</span><span style="font-family: 宋体;"><br>注</span><span lang="EN-US"><font face="Calibri">: </font></span><span style="font-family: 宋体;">此处参考了（</span><span lang="EN-US"><a href="http://www.cnblogs.com/dragon/archive/2005/03/24/124254.aspx"><font color="#800080" face="Calibri">http://www.cnblogs.com/dragon/archive/2005/03/24/124254.aspx</font></a></span><span style="font-family: 宋体;">）</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: -23.25pt;"><b style=""><span style="" lang="EN-US"><span style=""><font face="Calibri">1.3</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></b><b style=""><span lang="EN-US"><font face="Calibri">Log4net</font></span></b><b style=""><span style="font-family: 宋体;">配置文件解析</span><span lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span lang="EN-US"><font face="Calibri">Log4net </font></span><span style="font-family: 宋体;">的配置文件中配置项结构和</span><span lang="EN-US"><font face="Calibri">log4net </font></span><span style="font-family: 宋体;">设计类的结构相吻合的。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 23.25pt; text-indent: 0cm;"><span style="font-family: 宋体;">我把配置文件分成了三块</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: -36pt;"><span style="" lang="EN-US"><span style=""><font face="Calibri">1.3.1</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US"><font face="Calibri">&lt;Root&gt;</font></span><span style="font-family: 宋体;">块设置</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 21pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US">&lt;root&gt; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 21pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US"><span style="">&nbsp; </span>&lt;level value="WARN" /&gt; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 21pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US"><span style="">&nbsp; </span>&lt;appender-ref ref="LogFileAppender" /&gt; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 21pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US"><span style="">&nbsp; </span>&lt;appender-ref ref="ConsoleAppender" /&gt; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 21pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US">&lt;/root&gt; <o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: 0cm;"><span style="font-family: 宋体;">在</span><span lang="EN-US"><font face="Calibri">Log4net </font></span><span style="font-family: 宋体;">设计中</span><span lang="EN-US"><font face="Calibri">logger</font></span><span style="font-family: 宋体;">都继承于</span><span lang="EN-US"><font face="Calibri">root</font></span><span style="font-family: 宋体;">，定义了一个基本日志对象的配置，</span><font face="Calibri"> </font><span style="font-family: 宋体;">在</span><span lang="EN-US"><font face="Calibri">&lt;root&gt;</font></span><span style="font-family: 宋体;">中设置的配置信息可以被自定义的</span><span lang="EN-US"><font face="Calibri">Logger</font></span><span style="font-family: 宋体;">继承并覆盖。当然了自定义</span><span lang="EN-US"><font face="Calibri">Logger</font></span><span style="font-family: 宋体;">本身也是可以继承的。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: 0cm;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: 0cm;"><span lang="EN-US"><span style=""><font face="Calibri">&nbsp;&nbsp; </font></span></span><span style="font-family: 宋体;">在</span><span lang="EN-US"><font face="Calibri">&lt;root&gt;</font></span><span style="font-family: 宋体;">中我们可以配置</span><font face="Calibri"> </font><span style="font-family: 宋体;">保存配置文件的级别</span><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US">&lt;level&gt;</span><span style="font-family: 宋体;">，级别可以分为</span><font face="Calibri"><b style=""><span lang="EN-US">OFF<span style="">&nbsp; </span>FATAL RROR WARN INFO DEBUG ALL </span></b><span lang="EN-US"><span style="">&nbsp;</span></span></font><span style="font-family: 宋体;">这几种。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: 0cm;"><span style="font-family: 宋体;">和对应的输出源</span><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US">&lt;appender-ref&gt; </span><span style="font-size: 9pt; font-family: 宋体;">输出源需要配置 在其后定义的输出源配置名称。</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: -36pt;"><span style="" lang="EN-US"><span style=""><font face="Calibri">1.3.2</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US"><font face="Calibri">&lt;Logger&gt;</font></span><span style="font-family: 宋体;">块设置</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri">&lt;logger name="testApp.Logging"&gt; </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp; </span>&lt;level value="DEBUG"/&gt; </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-indent: 49.5pt; text-align: left;" align="left"><span style="font-size: 9pt; color: rgb(0, 112, 192); font-family: 宋体;" lang="EN-US">&lt;appender-ref ref="ConsoleAppender" /&gt; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri">&lt;/logger&gt; </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri">&lt;logger&gt; </font></span><span style="font-family: 宋体;">元素预定义了一个具体日志对象的设置。其定义的规则和</span><span lang="EN-US"><font face="Calibri">&lt;root&gt;</font></span><span style="font-family: 宋体;">是一样的，在这里面要补充的是</span><font face="Calibri"> </font><span style="font-family: 宋体;">可以通过调用</span><span lang="EN-US"><font face="Calibri">LogManager.GetLogger(</font></span><span style="font-family: 宋体;">“</span><span lang="EN-US"><font face="Calibri">LoggerName</font></span><span style="font-family: 宋体;">”</span><span lang="EN-US"><font face="Calibri">)</font></span><span style="font-family: 宋体;">的函数来调用已经配置的日志对象。</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: -36pt;"><span style="" lang="EN-US"><span style=""><font face="Calibri">1.3.3</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US"><font face="Calibri">&lt;Appender&gt;</font></span><span style="font-family: 宋体;">块设置</span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri">&lt;appender name="RootAppender" type="log4net.Appender.RollingFileAppender"&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;file value=" E:\work\Leather Machine Business flat\Data Source\Web\Web\Log\lmbf.log" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;appendToFile value="true" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;rollingStyle value="Composite" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;datePattern value="yyyyMMdd" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;param name="MaxSizeRollBackups" value="-1" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;param name="MaximumFileSize" value="10MB" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;layout type="log4net.Layout.PatternLayout" &gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;conversionPattern value="%date [%c]-[%p] %m%n" /&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt;"><span lang="EN-US"><font face="Calibri"><span style="">&nbsp;&nbsp;&nbsp; </span>&lt;/layout&gt;</font></span></p>
<p class="MsoListParagraph" style="margin: 0cm 0cm 0pt 36pt; text-indent: 0cm;"><span lang="EN-US"><font face="Calibri">&lt;/appender&gt;</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;">对于整个配置文件来讲</span><span lang="EN-US"><font face="Calibri"> &lt;appender&gt;</font></span><span style="font-family: 宋体;">部分是最复杂的，以为</span><span lang="EN-US"><font face="Calibri">log4net </font></span><span style="font-family: 宋体;">支持的输出源是多样的，且每一种输出源的需要配置的信息也是不同的，上面的例子是配置的一个</span><span lang="EN-US"><font face="Calibri">FileAppender</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt;file value&gt;<span style="">&nbsp; </span></font></span><span style="font-family: 宋体;">：</span><font face="Calibri"> </font><span style="font-family: 宋体;">文件的路径</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt;appendToFile&gt;:<span style="">&nbsp; </span></font></span><span style="font-family: 宋体;">是否追加文件</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt; rollingStyle &gt;: </font></span><span style="font-family: 宋体;">滚动类型？</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt; datePattern &gt;:</font></span><span style="font-family: 宋体;">日期方式</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">MaximumFileSize </font></span><span style="font-family: 宋体;">：</span><font face="Calibri"> </font><span style="font-family: 宋体;">日志文件最大容量</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt; lockingModel &gt;:</font></span><span style="font-family: 宋体;">日志文件锁方式</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">&lt; layout &gt; : </font></span><span style="font-family: 宋体;">呈现方式</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><b style=""><span lang="EN-US"><font face="Calibri">log4net.Layout.PatternLayout</font></span></b><b style=""><span style="font-family: 宋体;">中的转换模式</span><span lang="EN-US"><font face="Calibri">(ConversionPattern) <o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%m(message):</font></span><span style="font-family: 宋体;">输出的日志消息，如</span><span lang="EN-US"><font face="Calibri">ILog.Debug(</font></span><span style="font-family: 宋体;">…</span><span lang="EN-US"><font face="Calibri">)</font></span><span style="font-family: 宋体;">输出的一条消息</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%n(new line):</font></span><span style="font-family: 宋体;">换行</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%d(datetime):</font></span><span style="font-family: 宋体;">输出当前语句运行的时刻</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%r(run time):</font></span><span style="font-family: 宋体;">输出程序从运行到执行到当前语句时消耗的毫秒数</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%t(thread id):</font></span><span style="font-family: 宋体;">当前语句所在的线程</span><span lang="EN-US"><font face="Calibri">ID </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%p(priority): </font></span><span style="font-family: 宋体;">日志的当前优先级别，即</span><span lang="EN-US"><font face="Calibri">DEBUG</font></span><span style="font-family: 宋体;">、</span><span lang="EN-US"><font face="Calibri">INFO</font></span><span style="font-family: 宋体;">、</span><span lang="EN-US"><font face="Calibri">WARN</font></span><span style="font-family: 宋体;">…等</span><font face="Calibri"> </font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">%c(class):</font></span><span style="font-family: 宋体;">当前日志对象的名称</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;">其他输出源配置请参照（</span><span lang="EN-US"><a href="http://logging.apache.org/log4net/release/config-examples.html"><font color="#800080" face="Calibri">http://logging.apache.org/log4net/release/config-examples.html</font></a></span><span style="font-family: 宋体;">）这里面包含了全部的</span><span lang="EN-US"><font face="Calibri">appender</font></span><span style="font-family: 宋体;">类型配置说明。</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><b style=""><span lang="EN-US"><font face="Calibri">1.4<span style="">&nbsp; </span></font></span></b><b style=""><span style="font-family: 宋体;">举一个实际的例子，阐述</span><span lang="EN-US"><font face="Calibri">Log4net</font></span></b><b style=""><span style="font-family: 宋体;">的完整的实现流程</span><span lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style=""><font face="Calibri">&nbsp;&nbsp; </font></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style=""><font face="Calibri">&nbsp;&nbsp; </font></span></span><span style="font-family: 宋体;">场景：在系统中一个组件负责处理日志信息，日志信息是保存到日志文件中的，配置文件和日志文件的路径和运行系统的主目录直接挂钩。</span><span lang="EN-US"><font face="Calibri">(</font></span><span style="font-family: 宋体;">系统研发的过程中</span><span lang="EN-US"><font face="Calibri">,</font></span><span style="font-family: 宋体;">日志组件在调试，测试下</span><font face="Calibri"> </font><span style="font-family: 宋体;">运行的环境不一致，尤其是</span><span lang="EN-US"><font face="Calibri">B/s </font></span><span style="font-family: 宋体;">测试时根本不知道</span><span lang="EN-US"><font face="Calibri">Web</font></span><span style="font-family: 宋体;">配置文件的存在</span><span lang="EN-US"><font face="Calibri">)</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><o:p><font face="Calibri">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style=""><font face="Calibri">&nbsp;&nbsp; </font></span></span><span style="font-family: 宋体;">在此类中组件分两个类</span><font face="Calibri"> </font><span style="font-size: 9pt; color: rgb(43, 145, 175); font-family: 新宋体;" lang="EN-US">Logger </span><span style="font-size: 9pt; font-family: 新宋体;">类<span style="color: rgb(43, 145, 175);"> 和<span lang="EN-US">ConfigFileCreate</span></span><span lang="EN-US"> </span>类</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Calibri">Logger </font></span><span style="font-family: 宋体;">负责提供日志的主入口，供系统的其它部分来调用日志的功能。</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: 9pt; font-family: 新宋体;" lang="EN-US">ConfigFileCreate </span><span style="font-size: 9pt; font-family: 新宋体;">负责动态生成配置文件。<br>下面是两个类的源代码 <br><br><br><br><br><span lang="EN-US"><o:p></o:p></span></span></p><span lang="EN-US"><o:p><font face="Calibri">
</font><div class="cnblogs_code"><font face="Calibri"><img id="Code_Closed_Image_112000" onclick="this.style.display='none'; document.getElementById('Code_Closed_Text_112000').style.display='none'; document.getElementById('Code_Open_Image_112000').style.display='inline'; document.getElementById('Code_Open_Text_112000').style.display='inline';" src="contractedblock.gif" align="top" height="16" width="11"><img id="Code_Open_Image_112000" style="display: none;" onclick="this.style.display='none'; document.getElementById('Code_Open_Text_112000').style.display='none'; getElementById('Code_Closed_Image_112000').style.display='inline'; getElementById('Code_Closed_Text_112000').style.display='inline';" src="expandedblockstart.gif" align="top" height="16" width="11"><span class="cnblogs_code_Collapse" id="Code_Closed_Text_112000">Code</span><span id="Code_Open_Text_112000" style="display: none;"><br><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><img id="Codehighlighter1_4_153_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4_153_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_4_153_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_4_153_Closed_Text').style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_4_153_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4_153_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_4_153_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_4_153_Open_Text').style.display='inline';" src="contractedblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_4_153_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_4_153_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;The&nbsp;class&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;which&nbsp;'s&nbsp;Main&nbsp;function&nbsp;&nbsp;is&nbsp;Init&nbsp;Log&nbsp;Config&nbsp;file(in&nbsp;the&nbsp;&nbsp;Catalogue&nbsp;of&nbsp;Assembly)<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="expandedblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">internal</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;ConfigFileCreate<br><img id="Codehighlighter1_193_2971_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_193_2971_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_193_2971_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_193_2971_Closed_Text').style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_193_2971_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_193_2971_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_193_2971_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_193_2971_Open_Text').style.display='inline';" src="contractedblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_193_2971_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_193_2971_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">const</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Log4Config&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">UtilityConfig.xml</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img id="Codehighlighter1_272_351_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_272_351_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_272_351_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_272_351_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_272_351_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_272_351_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_272_351_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_272_351_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_272_351_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_272_351_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;returns&gt;&lt;/returns&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="inblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">internal</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;GetConfigFile()<br><img id="Codehighlighter1_397_743_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_397_743_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_397_743_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_397_743_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_397_743_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_397_743_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_397_743_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_397_743_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_397_743_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_397_743_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_AssemblyCatalogue&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">GetAssemblyCatalogue();<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileInfo&nbsp;_fileinfo&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;FileInfo(_AssemblyCatalogue&nbsp;</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 0);">@"</span><span style="color: rgb(128, 0, 0);">/</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">&nbsp;Log4Config);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">find&nbsp;&nbsp;where&nbsp;the&nbsp;file&nbsp;is&nbsp;contained</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">_fileinfo.Exists)<br><img id="Codehighlighter1_639_696_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_639_696_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_639_696_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_639_696_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_639_696_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_639_696_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_639_696_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_639_696_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_639_696_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_639_696_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CreateXMLConfig(_fileinfo);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_fileinfo.FullName;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img id="Codehighlighter1_760_839_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_760_839_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_760_839_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_760_839_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_760_839_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_760_839_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_760_839_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_760_839_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_760_839_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_760_839_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;returns&gt;&lt;/returns&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="inblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;GetAssemblyCatalogue()<br><img id="Codehighlighter1_891_958_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_891_958_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_891_958_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_891_958_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_891_958_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_891_958_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_891_958_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_891_958_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_891_958_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_891_958_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;AppDomain.CurrentDomain.BaseDirectory;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;CreateXMLConfig(FileInfo&nbsp;fileInfo)<br><img id="Codehighlighter1_1023_2964_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1023_2964_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1023_2964_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1023_2964_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1023_2964_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1023_2964_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1023_2964_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1023_2964_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1023_2964_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1023_2964_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">using</span><span style="color: rgb(0, 0, 0);">&nbsp;(StreamWriter&nbsp;sw&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;File.CreateText(fileInfo.FullName))<br><img id="Codehighlighter1_1108_2944_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1108_2944_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1108_2944_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1108_2944_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1108_2944_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1108_2944_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1108_2944_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1108_2944_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1108_2944_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1108_2944_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;?xml&nbsp;version=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 128);">1.0</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;encoding=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">utf</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(128, 0, 128);">8</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;?&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;configuration&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;&lt;log4net&gt;&lt;!--&nbsp;contain&nbsp;the&nbsp;Log2net&nbsp;component&nbsp;'s&nbsp;configuration&nbsp;information&nbsp;--&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;root&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;!--&nbsp;base&nbsp;configuration--&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;level&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Debug\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&gt;&lt;/level&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;appender-ref&nbsp;ref=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">RootAppender\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/root&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;appender&nbsp;name=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">RootAppender\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;type=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">log4net.Appender.RollingFileAppender\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;file&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;+&nbsp;fileInfo.DirectoryName+&nbsp;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\Log\\lmbf.log\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;appendToFile&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;&lt;rollingStyle&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Composite\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;datePattern&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">yyyyMMdd\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;param&nbsp;name=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MaxSizeRollBackups\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(128, 0, 128);">1</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;param&nbsp;name=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MaximumFileSize\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">10MB\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;lockingModel&nbsp;type=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">log4net.Appender.FileAppender</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">MinimalLock\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;layout&nbsp;type=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">log4net.Layout.PatternLayout\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;conversionPattern&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">date&nbsp;[</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">c]</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">p]&nbsp;</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">m</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">n\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/layout&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/appender&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;logger&nbsp;name=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Test\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;level&nbsp;value=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Debug\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">/&gt;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;appender-ref&nbsp;ref=\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">RootAppender\</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&nbsp;/&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/logger&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/log4net&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">&lt;/configuration&gt;</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.Close();<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></font></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri"><br><br></font></p>
<div class="cnblogs_code"><font face="Calibri"><img id="Code_Closed_Image_112044" onclick="this.style.display='none'; document.getElementById('Code_Closed_Text_112044').style.display='none'; document.getElementById('Code_Open_Image_112044').style.display='inline'; document.getElementById('Code_Open_Text_112044').style.display='inline';" src="contractedblock.gif" align="top" height="16" width="11"><img id="Code_Open_Image_112044" style="display: none;" onclick="this.style.display='none'; document.getElementById('Code_Open_Text_112044').style.display='none'; getElementById('Code_Closed_Image_112044').style.display='inline'; getElementById('Code_Closed_Text_112044').style.display='inline';" src="expandedblockstart.gif" align="top" height="16" width="11"><span class="cnblogs_code_Collapse" id="Code_Closed_Text_112044">Code</span><span id="Code_Open_Text_112044" style="display: none;"><br><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_5_96_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_5_96_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_5_96_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_5_96_Closed_Text').style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_5_96_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_5_96_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_5_96_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_5_96_Open_Text').style.display='inline';" src="contractedblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_5_96_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_5_96_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;日志类&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;功能&nbsp;：<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;负责生成系统日志<br><img src="expandedblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;Logger<br><img id="Codehighlighter1_126_1831_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_126_1831_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_126_1831_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_126_1831_Closed_Text').style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_126_1831_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_126_1831_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_126_1831_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_126_1831_Open_Text').style.display='inline';" src="contractedblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_126_1831_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_126_1831_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;ILog&nbsp;_log&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;Logger&nbsp;_logger</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_217_289_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_217_289_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_217_289_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_217_289_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_217_289_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_217_289_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_217_289_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_217_289_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_217_289_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_217_289_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;the&nbsp;contruct&nbsp;of&nbsp;Logger<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="inblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;Logger()<br><img id="Codehighlighter1_322_621_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_322_621_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_322_621_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_322_621_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_322_621_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_322_621_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_322_621_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_322_621_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_322_621_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_322_621_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">load&nbsp;the&nbsp;configeration&nbsp;file&nbsp;,and&nbsp;init&nbsp;the&nbsp;Component&nbsp;of&nbsp;log4net</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileInfo&nbsp;_configFile&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;FileInfo(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;ConfigFileCreate().GetConfigFile());<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XmlConfigurator.ConfigureAndWatch(_configFile);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;LogManager.GetLogger(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 0, 0);">Test</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img id="Codehighlighter1_631_706_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_631_706_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_631_706_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_631_706_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_631_706_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_631_706_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_631_706_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_631_706_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_631_706_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_631_706_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;Logger&nbsp;'s&nbsp;&nbsp;Only&nbsp;&nbsp;Instance<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="inblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;Logger&nbsp;Instance<br><img id="Codehighlighter1_752_907_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_752_907_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_752_907_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_752_907_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_752_907_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_752_907_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_752_907_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_752_907_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_752_907_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_752_907_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_770_897_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_770_897_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_770_897_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_770_897_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_770_897_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_770_897_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_770_897_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_770_897_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_770_897_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_770_897_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(_logger&nbsp;</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_logger&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;Logger();<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_logger;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">actives&nbsp;about&nbsp;the&nbsp;Logger&nbsp;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Fatal(</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;message)<br><img id="Codehighlighter1_996_1040_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_996_1040_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_996_1040_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_996_1040_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_996_1040_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_996_1040_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_996_1040_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_996_1040_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_996_1040_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_996_1040_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Fatal(message);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Fatal(String&nbsp;message,&nbsp;System.Exception&nbsp;exception)<br><img id="Codehighlighter1_1120_1175_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1120_1175_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1120_1175_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1120_1175_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1120_1175_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1120_1175_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1120_1175_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1120_1175_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1120_1175_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1120_1175_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Fatal(message,&nbsp;exception);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Warn(String&nbsp;message)<br><img id="Codehighlighter1_1226_1269_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1226_1269_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1226_1269_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1226_1269_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1226_1269_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1226_1269_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1226_1269_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1226_1269_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1226_1269_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1226_1269_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Warn(message);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Warn(String&nbsp;message,&nbsp;System.Exception&nbsp;exception)<br><img id="Codehighlighter1_1347_1401_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1347_1401_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1347_1401_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1347_1401_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1347_1401_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1347_1401_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1347_1401_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1347_1401_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1347_1401_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1347_1401_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Warn(message,&nbsp;exception);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Error(String&nbsp;message)<br><img id="Codehighlighter1_1453_1497_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1453_1497_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1453_1497_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1453_1497_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1453_1497_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1453_1497_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1453_1497_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1453_1497_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1453_1497_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1453_1497_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Error(message);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Error(String&nbsp;message,&nbsp;System.Exception&nbsp;exception)<br><img id="Codehighlighter1_1577_1632_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1577_1632_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1577_1632_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1577_1632_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1577_1632_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1577_1632_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1577_1632_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1577_1632_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1577_1632_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1577_1632_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Error(message,&nbsp;exception);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Debug(String&nbsp;message)<br><img id="Codehighlighter1_1684_1728_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1684_1728_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1684_1728_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1684_1728_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1684_1728_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1684_1728_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1684_1728_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1684_1728_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1684_1728_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1684_1728_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Debug(message);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Info(String&nbsp;message)<br><img id="Codehighlighter1_1779_1822_Open_Image" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1779_1822_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1779_1822_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1779_1822_Closed_Text').style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1779_1822_Closed_Image" style="display: none;" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1779_1822_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1779_1822_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1779_1822_Open_Text').style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1779_1822_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1779_1822_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_log.Info(message);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></font></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri"><br>&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2008/12/4&nbsp;&nbsp;&nbsp; 小徐&nbsp; 写于 上海</font></p></o:p></span><p></p>
<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(1347407,17858,1)"> 
		<span class="diggnum" id="digg_count_1347407">0</span>
	</div>
	<div class="buryit" onclick="DiggIt(1347407,17858,2)"> 
		<span class="burynum" id="bury_count_1347407">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_1347407">0</span>	
	<div class="diggword" id="digg_word_1347407">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/macroxu-1982/archive/2008/09/03/1282833.html">« </a> 上一篇：<a href="http://www.cnblogs.com/macroxu-1982/archive/2008/09/03/1282833.html" title="发布于2008-09-03 13:18"> 不安装 Office2003 的情况下 进行Excel 开发 (寻找像Java中包含的第三方免费开源的Excel开发包)</a><br>
<a href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/14/1354957.html">» </a> 下一篇：<a href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/14/1354957.html" title="发布于2008-12-14 22:20">Ext学习系列一（JavaScript 对象设计）</a><br>
</div>








		<p class="postfoot">
			posted on 2008-12-04 11:25 <a href="http://www.cnblogs.com/macroxu-1982/">徐文兵</a> 阅读(3332) <a href="#commentform">评论(6)</a> &nbsp;<a href="http://www.cnblogs.com/macroxu-1982/admin/EditPosts.aspx?postid=1347407">编辑</a> <a href="http://www.cnblogs.com/macroxu-1982/AddToFavorite.aspx?id=1347407">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  所属分类: <a href="http://www.cnblogs.com/macroxu-1982/category/166720.html">开源组件 </a>
		</p>
	</div>
	<img src="1347407.html" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html"
dc:identifier="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/macroxu-1982/services/trackbacks/1347407.aspx" />
</rdf:RDF>
-->

	<a name="pagedcomment"></a>
<a name="评论">
</a><div id="comments">
<h3><a name="评论">评论</a></h3>
<a name="评论">	<span id="span_comment_maxid" style="display: none;">1485297</span>
		
	
			</a><h4>
<a name="评论">				</a><a href="#1391036">#1楼</a><a name="1391036" id="comment_anchor_1391036"></a> 218.206.234.* 
					<span>
						2008-12-04 12:49
					</span>
				<a id="Comments1_CommentList_ctl00_NameLink" target="_blank">黑牛[未注册用户]</a>
			</h4>
			<p>
				<span id="comment_body_1391036" class="blog_comment_body">木意思</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("黑牛",1391036,"")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1391036,"")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
			<h4>
				<a href="#1391063">#2楼</a><a name="1391063" id="comment_anchor_1391063"></a>
					<span>
						2008-12-04 13:01
					</span>
				<a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/ttzhang/" target="_top">上不了岸的鱼{ttzhang}</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e4%b8%8a%e4%b8%8d%e4%ba%86%e5%b2%b8%e7%9a%84%e9%b1%bc%7bttzhang%7d" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</h4>
			<p>
				<span id="comment_body_1391063" class="blog_comment_body">支持一下</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("上不了岸的鱼{ttzhang}",1391063,"emoAu1CnVxcbZz0GIoBZB0ApcAT4SxEj8P7zrpeZa6LLst2zVUjMOQ==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1391063,"emoAu1CnVxcbZz0GIoBZB0ApcAT4SxEj8P7zrpeZa6LLst2zVUjMOQ==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e4%b8%8a%e4%b8%8d%e4%ba%86%e5%b2%b8%e7%9a%84%e9%b1%bc%7bttzhang%7d" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
			<h4>
				<a href="#1391081">#3楼</a><a name="1391081" id="comment_anchor_1391081"></a>
					<span>
						2008-12-04 13:12
					</span>
				<a id="Comments1_CommentList_ctl02_NameLink" href="http://www.cnblogs.com/mava/" target="_top">白发先生</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e7%99%bd%e5%8f%91%e5%85%88%e7%94%9f" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</h4>
			<p>
				<span id="comment_body_1391081" class="blog_comment_body">讲得很详细。</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("白发先生",1391081,"2GHpxvNDBr3lgaRYywno+gszKzzMKLo92TBhQdQCLKPM5zh47dktjg==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1391081,"2GHpxvNDBr3lgaRYywno+gszKzzMKLo92TBhQdQCLKPM5zh47dktjg==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e7%99%bd%e5%8f%91%e5%85%88%e7%94%9f" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
			<h4>
				<a href="#1391294">#4楼</a><a name="1391294" id="comment_anchor_1391294"></a>
					<span>
						2008-12-04 15:30
					</span>
				<a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/Thriving-Country/" target="_top">GUO Xingwang</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/GUO+Xingwang" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</h4>
			<p>
				<span id="comment_body_1391294" class="blog_comment_body">log4net的架构确实不错，但是使用起来不是万能的，配置比较繁！</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("GUO Xingwang",1391294,"ER9aaqYAQn1Hi34ydc/I61irO3U6GpicHTH3M0Q+RqkR9ITkKQxaJQ==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1391294,"ER9aaqYAQn1Hi34ydc/I61irO3U6GpicHTH3M0Q+RqkR9ITkKQxaJQ==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=GUO+Xingwang" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
			<h4>
				<a href="#1391391">#5楼</a><a name="1391391" id="comment_anchor_1391391"></a>[<span class="louzhu">楼主</span>]
					<span>
						2008-12-04 16:50
					</span>
				<a id="Comments1_CommentList_ctl04_NameLink" href="http://www.cnblogs.com/macroxu-1982/" target="_top">徐文兵</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e5%be%90%e6%96%87%e5%85%b5" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</h4>
			<p>
				<span id="comment_body_1391391" class="blog_comment_body">我也是刚用 ，写出来 ，供他们讨论的 ，抛砖引玉之意</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("徐文兵",1391391,"IJLR/szI9AtA/zKDSB4wjn6vtKeyWKth180tE64xSIJdeCxDE2bTpg==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1391391,"IJLR/szI9AtA/zKDSB4wjn6vtKeyWKth180tE64xSIJdeCxDE2bTpg==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%be%90%e6%96%87%e5%85%b5" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
			<h4>
				<a href="#1485297">#6楼</a><a name="1485297" id="comment_anchor_1485297"></a><a name="Post"></a>
					<span>
						2009-03-23 21:49
					</span>
				<a id="Comments1_CommentList_ctl05_NameLink" href="http://www.cnblogs.com/landylee/" target="_top">landylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/landylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</h4>
			<p>
				<span id="comment_body_1485297" class="blog_comment_body">I JUST LIKE IT!</span>
				&nbsp;&nbsp;<a onclick='ReplyComment("landylee",1485297,"uzY4MmkTHMVq3eL9sm0tHvWb6upvce1zJWdYyTcQV8+XB7o1o4ZmJA==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1485297,"uzY4MmkTHMVq3eL9sm0tHvWb6upvce1zJWdYyTcQV8+XB7o1o4ZmJA==")' href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=landylee" target="_top">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		
</div>

<div id="comment_form" class="commentform">



<div id="divCommentShow"></div>
<div id="comment_nav" style="text-align: right;"><span id="span_refresh_tips"></span><a href="###" onclick="return RefreshCommentList(1347407);" name="commentform" id="lnk_RefreshComments">刷新评论列表</a>&nbsp; <a href="###" onclick="return RefreshPage();">刷新页面</a>&nbsp; <a href="#top">返回页首</a></div>
<div id="commentform_title">发表评论 <span class="ad_commentbox_up"><a href="http://www.cnblogs.com/" target="_top">博客园首页</a>&nbsp; <a href="http://news.cnblogs.com/" target="_top">IT新闻</a>&nbsp; <a href="http://home.cnblogs.com/ing/" target="_top">闪存</a>&nbsp; <a href="http://job.cnblogs.com/" target="_top">招聘</a>&nbsp; <a href="http://a4.yeshj.com/rd/34143/" target="_top">学英语</a></span></div>
<span id="tip_comment" style="color: Red;"></span>
<p>
昵称：<input name="ctl11$tbCommentAuthor" id="ctl11_tbCommentAuthor" class="author" value="解然" disabled="disabled" type="text">
</p>
<p>
主页：<input name="ctl11$tbCommentAuthorUrl" id="ctl11_tbCommentAuthorUrl" class="url" value="http://www.cnblogs.com/xieran/" disabled="disabled" type="text">
</p>
<p>
</p><div class="commentbox_title">
<div class="commentbox_title_left">评论内容：</div>
<div class="commentbox_title_right">
<img id="ubb_quote" class="comment_icon" src="quote.gif" alt="引用" title="添加引用" onclick="insertUBB('tbCommentBody','quote')">
<img id="ubb_bold" class="comment_icon" src="b.png" alt="粗体" title="添加粗体" onclick="insertUBB('tbCommentBody','b')">
<img id="ubb_url" class="comment_icon" src="lk.png" alt="链接" title="添加链接" onclick="insertUbbUrl('tbCommentBody')">
<img id="ubb_indent" class="comment_icon" src="indent.png" alt="缩进" title="添加首行缩进" onclick="insertIndent('tbCommentBody')">
<img id="ubb_img" class="comment_icon" src="img.gif" alt="图片" title="添加图片" onclick="insertUbbImg('tbCommentBody')">
<img id="ubb_code" class="comment_icon" style="" src="insertcode.gif" alt="代码" title="添加代码" onclick="insertUbbCode()">
</div>
</div>
<div class="clear"></div>
<textarea id="tbCommentBody" class="comment_textarea" onkeydown="return clt_enter(event)"></textarea>
<p></p>
<p>
<input id="btn_comment_submit" class="comment_btn" value="提交" onclick="PostComment();return false;" type="button">
&nbsp;&nbsp;<span id="span_comment_canceledit" style="display: none;"><a href="###" onclick="return CancelCommentEdit()">不改了</a>&nbsp;&nbsp;</span><a href="http://passport.cnblogs.com/logout.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fmacroxu-1982%2farchive%2f2008%2f12%2f04%2f1347407.html%3flogout%3d1%23commentform" onclick="return confirm('确认注销吗？')">注销</a>&nbsp;&nbsp;<a id="ctl11_lnkSubscribe" title="邮件订阅回复通知" onclick="return SubscribeComment();" href="http://www.cnblogs.com/UI/Controls/#%23%23">订阅回复</a>
</p>
<p>
[使用Ctrl+Enter键快速提交]
</p>
<div style="display: none;">
<span id="comment_edit_id"></span><span id="span_parentcomment_id">0</span>
<span id="span_parent_id">1347407</span>
<span id="span_comment_replyto"></span>
<span id="span_comment_title">Log4Net 开发文档</span>
<span id="span_comment_posted"></span>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55140/" target="_top">《星际争霸2》"刀锋女王"重金属主题音乐视频</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55139/" target="_top">中国站长最郁闷的几件事情</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55138/" target="_top">苹果Vs谷歌：手机领域谁怕谁？</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55137/" target="_top">摩托罗拉：豪赌Android的希望与隐忧</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55136/" target="_top">分众新坐标：楼宇是过去 未来在手机和互联网</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_4.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_5.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>


<div id="div_commentbox_nav" class="c_ad_block">
链接：<a href="http://www.cnblogs.com/macroxu-1982/archive/2008/12/04/1347407.html?switchskin=1#skinlist">切换模板</a><br>
</div>
<div id="relative_search"><br><b>相关搜索:</b><br> <a href="http://zzk.cnblogs.com/s?w=%e5%bc%80%e6%ba%90%e7%bb%84%e4%bb%b6+" target="_top">开源组件 </a> </div><div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/1347407/">Log4Net 开发文档</a></div>

</div>




				
</div>

<p id="footer">
	Powered by: 
	<br>
	
	<a id="Footer1_Hyperlink3" name="Hyperlink1" href="http://www.cnblogs.com/" style="font-family: Verdana; font-size: 12px;">博客园</a>
	<br>
	Copyright © 徐文兵
</p>



<div style="text-align: center;">
 
<img src="alimamal_001.php" name="alimamatmpf0.8677390338493122" id="alimamatmpf0.8677390338493122" style="border: 0px none ; margin: 0px; padding: 0px; width: 0px; height: 0px; vertical-align: baseline;" border="0"><iframe name="alimamaf0.8677390338493122" id="alimamaf0.8677390338493122" border="0" marginwidth="0" marginheight="0" style="width: 655px; height: 90px;" src="index_6.html" scrolling="no" frameborder="0"></iframe>
</div>
<div style="text-align: center;">

<ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 90px; position: relative; visibility: visible; width: 728px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 90px; position: relative; visibility: visible; width: 728px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame5" marginheight="0" marginwidth="0" name="google_ads_frame" src="index_7.html" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" frameborder="0" height="90" width="728"></iframe></ins></ins>
</div>
    </form>
	
	
      
    
    
    
</body>
</html>
